/* ====================================== 模块子路由配置  ====================================== */
import React from 'react'
import { Route, Redirect, Switch } from 'react-router-dom'
// ===================================================================== 异步加载
import Import from '@com/lazy/lazy-router'
// ===================================================================== 同步路由
const Index = () => (
	<Switch>

		{/* 知识手册 */}
		{/*<Route path='/knowledge' component={ Import('knowledge/index') }  exact={true}/>*/}
		{/*<Route path='/ewm' component={ Import('knowledge/ewm') }  exact={true}/>*/}
		{/* 重定向 */}
		{/*<Route path='/' children={ <Redirect to='/knowledge' /> }  />*/}
		
		{/* 信息收集 */}
		{/*<Route path='/collect' component={ Import('collect/index') }  exact={true}/>
		<Route path='/details' component={ Import('collect/details') }  exact={true}/>*/}
		{/* 重定向 */}
		{/*<Route path='/' children={ <Redirect to='/collect' /> }  />*/}
		
		{/* 临床建议 */}
		{/*<Route path='/suggest' component={ Import('suggest/index') }  exact={true}/>
		<Route path='/cause-suggest' component={ Import('suggest/cause-suggest') }  exact={true}/>*/}
		{/* 重定向 */}
		{/*<Route path='/' children={ <Redirect to='/suggest' /> }  />*/}
		
		{/* 云检商城 */}
		<Route path='/store' component={ Import('store/index') }  exact={true}/>
		<Route path='/ewm' component={ Import('store/ewm') }  exact={true}/>

		{/*<Route path='/knowledge' component={ Import('knowledge/index') }  exact={true}/>*/}
		{/*<Route path='/ewm' component={ Import('knowledge/ewm') }  exact={true}/>*/}
		{/*<Route path='/' children={ <Redirect to='/knowledge' /> }  />*/}
		
		{/* 重定向 */}
		<Route path='/' children={ <Redirect to='/store' /> }  />
		{/* 404 */}
		<Route component={ Import('404') } />
	</Switch>
)
export default Index

/*
	// 知识手册
	<Route path='/knowledge' component={ Import('knowledge/index') }  exact={true}/>
	<Route path='/ewm' component={ Import('knowledge/ewm') }  exact={true}/>
	<Route path='/' children={ <Redirect to='/knowledge' /> }  />
	// 信息收集 
	<Route path='/collect' component={ Import('collect/index') }  exact={true}/>
	<Route path='/details' component={ Import('collect/details') }  exact={true}/>
	<Route path='/' children={ <Redirect to='/collect' /> }  />
		
	// 临床建议
	<Route path='/suggest' component={ Import('suggest/index') }  exact={true}/>
	<Route path='/cause-suggest' component={ Import('suggest/cause-suggest') }  exact={true}/>
	*<Route path='/' children={ <Redirect to='/suggest' /> }  />
*/